Skip to main content

Update Comment

AutomatR.Jira.Activities.UpdateComment

The "Update Comment" activity in AutomatR's Jira package uses the Jira API to update a specific comment for a particular issue. This activity enhances collaboration and communication by allowing you to modify existing comments associated with Jira issues.

Properties

TypeDescription
Input
CommentThe comment text you wish to add to an Issue. This field supports only strings or String variables.
Comment IDThe comment text you wish to get from an Issue ID. This field supports only strings or String variables.
Ticket IDThe Ticket ID of the Issue. This field supports only strings or String variables.
Ticket KeyThe Ticket Key of the Issue. This field supports only strings or String variables.
Misc
Display NameThe display name of the activity. This field supports only strings or String variables.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Update Comment" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultA Comment object. This field supports only Comment variables. The variable you create for this property can be used as an input variable in subsequent activities (e.g., Delete Comment).

How to use:

  1. Drag and drop the "Update Comment" activity onto the workflow.
  2. Configure the properties by providing the Ticket ID or Ticket Key, Comment ID, and the updated comment text.
  3. Optionally, configure the delay.
  4. Execute the workflow to update the specified comment for the Jira issue.

Example: Consider an example where the "Update Comment" activity is used to modify an existing comment for a Jira issue:

Update Comment:
Ticket ID: "JRA-123"
Comment ID: "456"
Comment: "This is the updated comment text."
Result: updatedComment

In this example, the activity updates the comment with ID "456" for the Jira issue with Ticket ID "JRA-123". The updated comment text is provided, and the result of the operation is stored in the variable "updatedComment" for further handling in the workflow.